package com.ktjy.ktmall.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ktjy.ktmall.domain.vo.OrderInfo;
import com.ktjy.ktmall.mapper.OrderInfoMapper;
import com.ktjy.ktmall.service.OrderInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo> implements OrderInfoService {
    @Autowired
    private OrderInfoMapper orderInfoMapper;
    @Override
    public OrderInfo selectOrderInfoByOrderSn(Long id) {
        return orderInfoMapper.selectOrderInfoByOrderSn(id);
    }

    @Override
    public List<OrderInfo> selectOrderInfoList(OrderInfo orderInfo) {
        return orderInfoMapper.selectOrderInfoList(orderInfo);
    }
}
